<?php 
$content = isset($content) ? $content : '';
$meta = isset($meta) ? $meta : array();
$title = isset($title) ? $title : '';
$icon = isset($icon) ? $icon : '/favicon.ico';
$css  = isset($css) ? $css : array();
$script = isset($script) ? $script : array();
$app = Config::get('app.name', 'App');
?>
<!DOCTYPE html>
<html>
<?php echo View::make('share.header')->with('meta', $meta)->with('title', $title)->with('icon', $icon)->with('css', $css)->with('icon', $icon);?>
<body>
<div id='page'>
<div class='header container-fluid'>
<p class='app'><?php echo $app;?></p>
<ul class='unstyled nav'>
<?php foreach (Config::get('app.nav', array()) as $k => $v):?>
  <li class='<?php if ($active == $v['name']) echo 'active';?>'><a href='<?php echo $v['url'];?>'><?php echo $v['cname'];?></a></li>
<?php endforeach;?>
</ul>
</div>
<div class='wrapper container-fluid'>
<div style='height:30px;'></div>
<?php echo $content;?>
</div>
<div class='footer container-fluid'>
</div>
</div>
<?php echo View::make('share.footer')->with('script', $script);?>
</body>
</html>
